package com.edu.service.food;

import com.edu.entity.Food;
import com.edu.utils.PageList;
import com.edu.utils.PageParam;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author ZCN
 * @Date 2021/11/14 2:21
 * @Version 1.0
 **/
public interface FoodService {
    // 分页数据
    PageList pageList(PageParam pageParam) throws Exception;

    // 热门
    List<Object> getHotsFood() throws  SQLException;

    // 厨师推荐
    List<Object> getCookRecommentFoods() throws SQLException;

    // 查询所有
    List<Food> findAll() throws SQLException;

    // 根据id查询
    Food findOne(Integer id) throws SQLException;

    // 修改
    void update(Food food) throws SQLException;

    // 下架
    void delete(Integer id) throws SQLException;

    // 上架
    void online(Integer id) throws SQLException;

    // 添加
    void insert(Food food) throws SQLException;
}
